﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Enterprise.Admin.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理平台登入</title>
    <link href="../Content/Widget/jquery-easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Widget/jquery-easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Skin/Css/admin-login.css" rel="stylesheet" />
    <script src="../Content/Widget/jquery.min.js" type="text/javascript"  charset="utf-8"></script>
    <script src="../Content/Widget/jquery-easyui/jquery.easyui.min.js"  charset="utf-8"type="text/javascript"></script>
    <script src="../Content/Widget/jquery-easyui/locale/easyui-lang-zh_CN.js"  charset="utf-8" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var login = function () {
                if ($('#login-form').form('validate')) {
                    $.ajax({
                        url: "Handle/Login.aspx",
                        type: 'Post',
                        data: $('#login-form').serialize(),
                        dataType: 'json',
                        timeout: 1000,
                        success: function (data) {
                            if (data.state) {
                                location.href = "Main.aspx";
                            }
                         
                            else {
                                $.messager.alert('提示', data.message, "error", function () {
                                    $('#imgCode').attr('src', $('#imgCode').attr('src') + '?');
                                });

                            }
                        }
                    });
                }
            };
            $("#btn-login").click(function () {
                login();
            });
            $('input').keydown(function (e) {
                if (e.ctrlKey && e.which == 13 || e.which == 13) {
                    login();
                }
            });
        });
    </script>
</head>
<body>
    <!--由专业的温州网络公司—温州市联科科技有限公司设计制作，如有任何意见或建设请联系我们，网站技术支持网址：http://www.lianke.cn-->
    <div id="main">
        <div id="wrapper">
            <form action="Handle/Login.aspx" method="POST" id="login-form" class="easyui-form">
                <div id="sys_name">
                    &nbsp;
                </div>
                <ul id="cont">
                    <li>
                        <label class="lb">
                            用户名</label>
                        <input name="username" id="uname" type="text" class="ip easyui-validatebox" value=""
                            maxlength="26" required="true" />
                    </li>
                    <li>
                        <label class="lb">
                            密码</label>
                        <input name="password" id="pwd" type="password" class="ip easyui-validatebox" value=""
                            maxlength="26" required="true" />
                    </li>
                    <li class="va_image">
                        <label class="lb">
                            验证码</label>
                        <input name="code" id="code" type="text" class="ip easyui-validatebox" value="" maxlength="4"
                            required="true" />
                    </li>
                    <li>
                        <label class="lb">
                            &nbsp;</label>
                        <img src="Handle/LoginCode.aspx" id="imgCode" width="60" height="25" onclick="this.src=this.src+'?'"
                            style="cursor: pointer;" alt="看不清？点击更换" />
                    </li>
                    <li><span>
                        <img id="btn-login" src="../Content/Skin/Images/ente.png" title="登录系统" alt=""/>
                    </span></li>
                </ul>
                <p id="copy">
                </p>
            </form>
        </div>
    </div>

</body>
</html>

